package com.result.demo.global.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author chao.z
 */
@Component
public class GlobalConfig {

    private static boolean SIGNCHECK;



    @Value("${global.signCheck}")
    public  boolean signCheck;


    @PostConstruct
    public void setSignCheck(){
        SIGNCHECK = this.signCheck;
    }

    public static boolean getSignCheck(){
        return SIGNCHECK;
    }

}
